import request from '~/utils/request';

//获取套餐列表
export function getGiftPackageList(data) {
    return request({
        url: '/Order/GetGiftPackageList',
        method: 'post',
        data,
    });
}
//获取套餐列表--指定项目
export function getPackageListOfProject(data) {
    return request({
        url: '/Order/GetPackageListOfProject',
        method: 'post',
        data,
    });
}

//获取套餐明细列表或订单明细列表
export function getItemList(data) {
    return request({
        url: '/Order/GetItemList',
        method: 'post',
        data,
    });
}

//审核订单/套餐
export function verifyPackageOrOrder(data) {
    return request({
        url: '/Order/VerifyPackageOrOrder',
        method: 'post',
        data,
    });
}

//设置订单/套餐状态
export function setPackageState(data) {
    return request({
        url: '/Order/SetPackageState',
        method: 'post',
        data,
    });
}

//设置订单/套餐持有人
export function setOrderItemHold(data) {
    return request({
        url: '/Order/SetOrderItemHold',
        method: 'post',
        data,
    });
}

//保存运费
export function saveOrderPost(data) {
    return request({
        url: '/Order/SaveOrderPost',
        method: 'post',
        data,
    });
}

//获取包含套餐明细的单条记录
export function getPackageItem(package_id) {
    return request({
        url: '/Order/GetPackageItem?package_id=' + package_id,
        method: 'get',
    });
}

//获取包含订单明细的单条记录
export function getOrderItem(order_id) {
    return request({
        url: '/Order/GetOrderItem?order_id=' + order_id,
        method: 'get',
    });
}

//获取包含明细的所有订单列表
export function getAllOrderList(data) {
    return request({
        url: '/Order/GetAllOrderList',
        method: 'post',
        data,
    });
}

//获取包含明细的未发货订单
export function getNotShippedOrder(data) {
    return request({
        url: '/Order/GetNotShippedOrder',
        method: 'post',
        data,
    });
}

//获取订单列表--指定项目
export function getOrderListOfProjectPayed(data) {
    return request({
        url: '/Order/GetOrderListOfProjectPayed',
        method: 'post',
        data,
    });
}

//保存订单收货信息
export function saveOrderReceiveInfo(data) {
    return request({
        url: '/Order/SaveOrderReceiveInfo',
        method: 'post',
        data,
    });
}

//保存订单发货人
export function saveOrderSendInfo(data) {
    return request({
        url: '/Order/SaveOrderSendInfo',
        method: 'post',
        data,
    });
}
//保存订单明细发货人
export function saveItemSendInfo(data) {
    return request({
        url: '/Order/SaveItemSendInfo',
        method: 'post',
        data,
    });
}
//获取发货列表
export function getItemSendList(data) {
    return request({
        url: '/Order/GetItemSendList',
        method: 'post',
        data,
    });
}

//获取所有发货列表
export function getItemSendAllList(data) {
    return request({
        url: '/Order/GetItemSendAllList',
        method: 'post',
        data,
    });
}

//获取订单物流列表
export function getOrderExpressList(data) {
    return request({
        url: '/Order/GetOrderExpressList',
        method: 'post',
        data,
    });
}

//获取单条订单物流
export function getOrderExpressInfo(id) {
    return request({
        url: '/Order/GetOrderExpressInfo?order_express_id=' + id,
        method: 'get',
    });
}

//获取订单物流记录
export function getOrderExpressLog(data) {
    return request({
        url: '/Order/GetOrderExpressLog',
        method: 'post',
        data,
    });
}

//保存订单物流
export function saveOrderExpressInfo(data) {
    return request({
        url: '/Order/SaveOrderExpressInfo',
        method: 'post',
        data,
    });
}

//获取支付记录列表
export function getOrderPayList(data) {
    return request({
        url: '/Order/GetOrderPayList',
        method: 'post',
        data,
    });
}
//获取支付记录列表--我的
export function getOrderPayListMy(data) {
    return request({
        url: '/Order/GetOrderPayListMy',
        method: 'post',
        data,
    });
}

//分页获取业主售后列表
export function getServiceList(data) {
    return request({
        url: '/Order/GetServiceList',
        method: 'post',
        data,
    });
}

//获取售后订单详情
export function getServiceInfo(data) {
    return request({
        url: '/Order/GetServiceInfo',
        method: 'post',
        data,
    });
}

//受理售后订单
export function setServiceAccept(data) {
    return request({
        url: '/Order/SetServiceAccept',
        method: 'post',
        data,
    });
}

//取消售后订单
export function setServiceCancel(data) {
    return request({
        url: '/Order/SetServiceCancel',
        method: 'post',
        data,
    });
}

//支付订单退货款
export function servicePay(data) {
    return request({
        url: '/Order/ServicePay',
        method: 'post',
        data,
    });
}

//获取评价列表
export function getEvaListBySpID(data) {
    return request({
        url: '/Order/GetEvaListBySpID',
        method: 'post',
        data,
    });
}

//保存评价回复
export function saveEvaluateReplycontent(data) {
    return request({
        url: '/Order/SaveEvaluateReplycontent',
        method: 'post',
        data,
    });
}

//获取Ftp服务器基址
export function getFtpBaseUsr() {
    return request({
        url: '/Product/GetFtpBaseUsr',
        method: 'get',
    });
}

//获取订单支付凭证
export function getOrderPaymentVoucher(data) {
    return request({
        url: '/Order/GetOrderPaymentVoucher',
        method: 'post',
        data,
    });
}

//获取提现订单列表
export function getOrderCashList(data) {
    return request({
        url: '/Order/GetOrderCashList',
        method: 'post',
        data,
    });
}

//获取提现订单详情
export function getOrderCashInfo(data) {
    return request({
        url: '/Order/GetOrderCashInfo?cash_id=' + data,
        method: 'get',
    });
}

//保存提现订单
export function saveOrderCashInfo(data) {
    return request({
        url: '/Order/SaveOrderCashInfo',
        method: 'post',
        data,
    });
}

//修改提现订单状态
export function setOrderCashState(data) {
    return request({
        url: '/Order/SetOrderCashState',
        method: 'post',
        data,
    });
}

//修改提现订单状态
export function orderPay(data) {
    return request({
        url: '/Order/OrderPay',
        method: 'post',
        data,
    });
}

//再次支付。
export function refundPay(data) {
    return request({
        url: '/Order/RefundPay',
        method: 'post',
        data,
    });
}

//取订单的支付记录
export function getOrderPayInfo(data) {
    return request({
        url: '/Order/GetOrderPayInfo',
        method: 'post',
        data,
    });
}

//审核业主已付赠品订单
export function verifyOwnerSelfGiftOrder(data) {
    return request({
        url: '/Order/VerifyOwnerSelfGiftOrder',
        method: 'post',
        data,
    });
}

//套餐审核时删除套餐中的体验金
export function delExperienceGold(data) {
    return request({
        url: '/Order/DelExperienceGold',
        method: 'post',
        data,
    });
}

//管理者取消已审待付的套餐订单
export function managerCancelOrder(data) {
    return request({
        url: '/Order/OwnerCancelOrder',
        method: 'post',
        data,
    });
}

//获取订单发票列表
export function getOrderInvoiceList(data) {
    return request({
        url: '/Order/GetOrderInvoiceList',
        method: 'post',
        data,
    });
}

//查看订单发票信息
export function getOrderInvoiceInfo(data) {
    return request({
        url: '/Order/GetOrderInvoiceInfo',
        method: 'post',
        data,
    });
}

//获取最近一条订单发票
export function getLastOrderInvoice() {
    return request({
        url: '/Order/GetLastOrderInvoice',
        method: 'post',
    });
}

//保存订单发票信息
export function saveOrderInvoiceInfo(data) {
    return request({
        url: '/Order/SaveOrderInvoiceInfo',
        method: 'post',
        data,
    });
}

//保存订单发票物流
export function saveOrderInvoiceExpress(data) {
    return request({
        url: '/Order/SaveOrderInvoiceExpress',
        method: 'post',
        data,
    });
}

//设置订单发票状态
export function setOrderInvoiceState(data) {
    return request({
        url: '/Order/SetOrderInvoiceState',
        method: 'post',
        data,
    });
}

//通过提货订单获取原套餐信息
export function getPackageByOrderID(data) {
    return request({
        url: '/Order/GetPackageByOrderID',
        method: 'post',
        data,
    });
}

//设置提货订单状态
export function setTakeOrderState(data) {
    return request({
        url: '/Order/SetTakeOrderState',
        method: 'post',
        data,
    });
}

//套餐预订 列表
export function getOrderBookList(data) {
    return request({
        url: '/Order/GetOrderBookList',
        method: 'post',
        data,
    });
}
//套餐预订 活动状态设置
export function setOrderBookState(data) {
    return request({
        url: '/Order/SetOrderBookState',
        method: 'post',
        data,
    });
}
//套餐预订 保存单条
export function saveOrderBookInfo(data) {
    return request({
        url: '/Order/SaveOrderBookInfo',
        method: 'post',
        data,
    });
}
//套餐预订 取单条
export function getOrderBookInfo(data) {
    return request({
        url: '/Order/GetOrderBookInfo',
        method: 'post',
        data,
    });
}
//套餐预订 当前活动套餐信息
export function getOrderBookPackage(data) {
    return request({
        url: '/Order/GetOrderBookPackage',
        method: 'post',
        data,
    });
}
//套餐预订 当前活动业主信息
export function getOrderBookOwner(data) {
    return request({
        url: '/Order/GetOrderBookOwner',
        method: 'post',
        data,
    });
}
//套餐预订 设置完成，并生成订单
export function setOrderBookFinish(data) {
    return request({
        url: '/Order/SetOrderBookFinish',
        method: 'post',
        data,
    });
}

//获取有效订单列表
export function getActiveOrderList(data) {
    return request({
        url: '/Order/GetActiveOrderList',
        method: 'post',
        data,
    });
}
//获取发票的订单
export function getOrderByInvoice(data) {
    return request({
        url: '/Order/GetOrderByInvoice',
        method: 'post',
        data,
    });
}
//获取发货统计
export function GetOrderItemListCount(data) {
    return request({
        url: '/Order/GetOrderItemListCount',
        method: 'post',
        data,
    });
}
//获取发货统计
export function GetOrderListCount(data) {
    return request({
        url: '/Order/GetOrderListCount',
        method: 'post',
        data,
    });
}

//请款列表 获取我的对接
export function getItemHoldList(data) {
    return request({
        url: '/Order/GetItemHoldList',
        method: 'post',
        data,
    });
}
//请款列表 保存请款申请
export function saveOrderFundInfo(data) {
    return request({
        url: '/Order/SaveOrderFundInfo',
        method: 'post',
        data,
    });
}
//请款列表 凭证
export function getOrderFundFile(data) {
    return request({
        url: '/Order/GetOrderFundFile',
        method: 'post',
        data,
    });
}
//请款列表
export function getItemFundList(data) {
    return request({
        url: '/Order/GetItemFundList',
        method: 'post',
        data,
    });
}
//请款全部列表
export function getOrderFundAllList(data) {
    return request({
        url: '/Order/GetOrderFundAllList',
        method: 'post',
        data,
    });
}
//请款明细
export function getOrderFundInfo(data) {
    return request({
        url: '/Order/GetOrderFundInfo',
        method: 'post',
        data,
    });
}
//请款列表 审核
export function saveOrderFundState(data) {
    return request({
        url: '/Order/SaveOrderFundState',
        method: 'post',
        data,
    });
}
//请款列表 支付
export function saveOrderFundPay(data) {
    return request({
        url: '/Order/SaveOrderFundPay',
        method: 'post',
        data,
    });
}
//套餐列表
export function getOrderBookForProject(data) {
    return request({
        url: '/Order/GetOrderBookForProject',
        method: 'POST',
        data,
    });
}

//商品列表
export function getPackageItemList(data) {
    return request({
        url: '/Order/GetPackageItemList',
        method: 'POST',
        data,
    });
}
//选中套餐
export function setParkingPackage(data) {
    return request({
        url: '/Order/SetParkingPackage',
        method: 'POST',
        data,
    });
}
//商品列表
export function getPackageItemListApi(data) {
    return request({
        url: '/Order/GetPackageItemListApi',
        method: 'POST',
        data,
    });
}

//获取套餐列表
export function ownerPackageList() {
    return request({
        url: '/Order/OwnerPackageList',
        method: 'POST',
    });
}
//根据套餐id获取套餐信息
export function getPackageEdit(data) {
    return request({
        url: '/Order/GetPackageEdit',
        method: 'POST',
        data,
    });
}

//业主引流礼品提货  业主赠品套餐提货
export function createTakeOrder(data) {
    return request({
        url: '/Order/CreateTakeOrder',
        method: 'POST',
        data,
    });
}
//通过订单明细获取订单信息与明细信息
export function getOrderInfoByItemID(data) {
    return request({
        url: '/Order/GetOrderInfoByItemID',
        method: 'POST',
        data,
    });
}
//
// 获取车位套餐信息与明细列表
export function getParkingPackageInfo(data) {
    return request({
        url: '/Order/GetParkingPackageInfo',
        method: 'POST',
        data,
    });
}
//
//开发商创建套餐订单
export function createCompanyPackageOrder(data) {
    return request({
        url: '/Order/CreateCompanyPackageOrder',
        method: 'POST',
        data,
    });
}
//获取订单信息与明细
export function getOrderInfo(data) {
    return request({
        url: '/Order/GetOrderInfo',
        method: 'POST',
        data,
    });
}
//单个明细收货
export function receiveOrderItem(data) {
    return request({
        url: '/Order/ReceiveOrderItem',
        method: 'POST',
        data,
    });
}
